<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateUserBanksTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('user_banks', function(Blueprint $table)
		{
			$table->integer('id')->primary();
			$table->integer('user_id')->nullable()->comment('用户id');
			$table->integer('bank_type')->nullable()->comment('银行类型');
			$table->string('bank_code', 100)->nullable()->comment('银行账户');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('user_banks');
	}

}
